package sspatcher;

public enum PatchRuleTypeEnum {
    OVERRIDE,
    INSERT,
    REMOVE;

    public static PatchRuleTypeEnum fromString(String str) throws RuntimeException {
        if ("OVERRIDE".equals(str)) return OVERRIDE;
        if ("INSERT".equals(str)) return INSERT;
        if ("REMOVE".equals(str)) return REMOVE;
        throw new RuntimeException("No enum found by name:" + str);
    }
}
